restored DomUs, since they currently Oops on x86_64.
try:
# Activate the console
console.sendInput("foo")
- # Make sure a command succeeds
- run = console.runCmd("ls /bin")
+ # Set a variable to check on the other side
+ run = console.runCmd("foo=bar")
except ConsoleError, e:
FAIL(str(e))
# Attach a console to it
try:
console = XmConsole(domain.getName(), historySaveCmds=True)
+ console.debugMe = True
except ConsoleError, e:
pass
+console.sendInput("ls")
+
# Run 'ls'
try:
# Check the dmesg output on the domU
- run = console.runCmd("ls /bin")
+ run = console.runCmd("echo xx$foo")
except ConsoleError, e:
FAIL(str(e))
-
-if not re.search("chmod", run["output"]):
- FAIL("invalid console output from ls after migration")
+
+if not re.search("bar", run["output"]):
+ FAIL("Migrated domain has been reset")
# Close the console
console.closeConsole()
# Make sure the domain isn't DOA
try:
console = XmConsole(domain.getName())
+ console.sendInput("input")
+ console.runCmd("foo=bar")
except ConsoleError, e:
FAIL(str(e))
# Make sure it's alive
try:
newConsole = XmConsole(domain.getName())
- run = newConsole.runCmd("ls")
- if run["return"] != 0:
- FAIL("Unable to read from restored domain")
+ # Enable debug dumping because this generates a Oops on x86_64
+ newConsole.debugMe = True
+ newConsole.sendInput("ls")
+ run = newConsole.runCmd("echo xx$foo")
+ if not re.search("bar", run["output"]):
+ FAIL("Restored domain has been reset")
except ConsoleError, e:
FAIL("Restored domain is dead (%s)" % str(e))
try:
console = XmConsole(domain.getName())
+ # Enable debug dumping, as this causes an Oops on x86_64
+ console.debugMe = True
+
+ # In case the domain is rebooted
+ console.sendInput("ls")
run = console.runCmd("ls | grep proc")
if run["return"] != 0: